package crud.client.util;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class GenericCallback<T> implements AsyncCallback<T> 
{
	@Override
	public void onFailure(Throwable caught)
	{
		System.out.println("******** ON FAILLURE *********");
		System.out.println(caught.getCause() + " " + caught.getMessage());
		caught.printStackTrace();
		 Window.alert("Failed to get response from server" + caught.getMessage() + " " + caught.getCause());
	}

}
